/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.exam;

/**
 * <p>Project: javaseapp - Demo
 * <p>Powered by webrx On 2021-08-07 11:51:25
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Demo {
    public static void main(String[] args) {
        Util u = new Util();

        String p = "my234-user";
        System.out.println(u.getMdString(p, "md5"));
        System.out.println(u.getMdString(p, "md5").length());

        System.out.println(u.getMdString(p, "sha1"));
        System.out.println(u.getMdString(p, "sha1").length());


        System.out.println(u.getPassword());
        System.out.println(u.getPassword(8));

        System.out.println("-----------------------------------");
        System.out.println(u.checkcode());
        System.out.println(u.checkcode(6));


    }
}
